
<!doctype html>
<html>
<head>
<?php $this->inc('_pub/weys~imp'); ?>
<title>默认详情页模板 - DEMO</title>
<style type="text/css">
.html { line-height:180%; }  
</style>
</head>

<body>
<?php $this->inc('_pub/weys~head'); ?>

<article class="" style="padding-top:2rem">

    <h3>@/root/demo/_view.htm - 默认详情页模板</h3>

    <ul>
        <li>详情： id = `<?=$this->mkvs['key']?>`，可以修改url的参数查看效果。</li>
    </ul>

    <?php if(!empty($row)){ ?>
    <hr />
    <h1 class="title"><?=$row['title']?></h1>
    <p class="info"><?=$row['click']?> / <?=date('Y-m-d H:i:s',$row['atime'])?> / <?=$row['auser']?></p>

    <div class="html">
        <?=$row['detail']?>
    </div>

    <div class='tag'>
      <?php echo isset($dic[$row['catid']]) ? $dic[$row['catid']]['title'] : "(未知类别:{$row['catid']})"; ?>
    </div>
    <?php }else{ $this->inc('_pub/debug'); ?>
    <?php } ?>

    <hr />
    <ul>
        <li>说明：略；</li>
    </ul>

</article>

<?php $this->inc('_pub/weys~foot'); ?>
</body>
</html>
